﻿/*----------------------------------------------------------------
// Copyright (C) 2014 苏州麦迪斯顿医疗科技股份有限公司
// 文件名：CacheContext.cs
// 文件功能描述：CacheContext
// 创建标识：顾伟伟-2014-04-18
----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Caching;
using System.Threading;

namespace CPOE.Framework.Caching
{
    /// <summary>
    /// 缓存上下文
    /// </summary>
    public class CacheContext
    {
        private static readonly CacheContext _context = new CacheContext();
        private MemoryCache _stores=new MemoryCache("CachingCallHandler");
        
        /// <summary>
        /// 当前缓存
        /// </summary>
        public static CacheContext Current
        {
            get
            {
                return _context;
            }
        }
        /// <summary>
        /// 缓存存储
        /// </summary>
        public MemoryCache Stores
        {
            get
            {
                return _stores;
            }
        }
     
    }
}
